using System;
using Sponsorship.ReadModel;
using StructureMap.Configuration.DSL;

namespace Sponsorship.Infrastructure.BootStrapping.Registries
{
    public class EventHandlerRegistry : Registry
    {
        public EventHandlerRegistry()
        {
            Scan(x =>
            {
                x.Assembly(typeof(IEventHandler<>).Assembly);
                x.AddAllTypesOf(typeof(IEventHandler<>));
            });
        }
    }
}